package com.liujit.bms.admin.domain.query;

import com.liujit.common.domain.query.PageQuery;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @Description 博客文章查询条件
 * @Author liujun
 * @Date 2021-07-03 14:54:49
 */
@Data
@ApiModel(value = "BlogArticleQuery", description = "博客文章查询条件")
public class BlogArticleQuery extends PageQuery {

    @ApiModelProperty(value = "分类id")
    private Long categoryId;

    @ApiModelProperty(value = "作者")
    private String author;

    @ApiModelProperty(value = "标题")
    private String title;

    @ApiModelProperty(value = "是否公开：1、是。0、否。")
    private Short isOpen;

    @ApiModelProperty(value = "是否置顶：1、是。0、否。")
    private Short isTop;

    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "开始时间")
    private Date startTime;

    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "结束时间")
    private Date endTime;

    @ApiModelProperty(value = "创建用户id")
    private Long createUserId;
}